$(document).ready(function() {
    $("#jslink").click(function() {
        alert("Hello JavaScript World");
        //$(this).addClass("red");
    });
    $("#radio").buttonset();
    $("button").button();

    // Dialog
    $('#dialog').dialog({
        autoOpen: false,
        width: 600,
        buttons: {
            "Ok": function() { 
                $(this).dialog("close"); 
            }, 
            "Cancel": function() { 
                $(this).dialog("close"); 
            } 
        }
    });

    $('#dialog_link').click(function(){
        $('#dialog').dialog('open');
        return false;
    });
    //hover states on the static widgets

    $('#dialog_link, ul#icons li').hover(
        function() { $(this).addClass('ui-state-hover'); }, 
        function() { $(this).removeClass('ui-state-hover'); }
    );
    //hover states on the static widgets
    $('#dialog_link, ul#icons li').hover(
        function() { $(this).addClass('ui-state-hover'); }, 
        function() { $(this).removeClass('ui-state-hover'); }
    );
    $( "#progressbar" ).progressbar({
        value: 37
    });
});

